package com.qingbo.wu.oss.adapter.impl;

import com.google.common.collect.Lists;
import com.qingbo.wu.oss.entity.FileInfo;
import com.qingbo.wu.oss.adapter.StorageAdapter;
import org.springframework.web.multipart.MultipartFile;

import java.io.InputStream;
import java.util.List;

/**
 * @Auther: qingbo.wu
 * @Date: 2024/6/1 17:25
 * @Description:
 */
//@Service(AliyunStorageAdapter.BEAN)
public class AliyunStorageAdapter implements StorageAdapter {

    public static final String BEAN = "aliyunStorageAdapter";

    @Override
    public void createBucket(String bucket) {

    }

    @Override
    public void uploadFile(MultipartFile uploadFile, String bucket, String objectName) {

    }

    @Override
    public List<String> getAllBuckets() {
        return Lists.newArrayList("club");
    }

    @Override
    public List<FileInfo> getAllFile(String bucket) {
        return null;
    }

    @Override
    public InputStream downLoad(String bucket, String objectName) {
        return null;
    }

    @Override
    public void deleteBucket(String bucket) {

    }

    @Override
    public void deleteFile(String bucket, String objectName) {

    }
}
